package com.ldzy.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
//@Getter
//@Setter
@Accessors(chain = true)
@TableName("t_shopping")
public class Shopping implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    @TableField("user_id")
    private  Long userId;
    @TableField("cake_id")
    private  Long cakeId;
    @TableField("number")
    private  int number;
    private  Cake cake;
}
